<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var a = 123;
        console.log(a);
        a = eval(123 + 456);
        console.log(a);

        var b = 123;
        eval('var b = 456;');
        console.log(b);
    </script>
</body>

</html>
<!-- JavaScript 标准内置对象 -->
<!-- https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects -->

<!-- eval() -->
<!-- https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/eval -->